<template>
  <el-input-number v-model="number" :size='size' @change="handleChange" :min="1" :max="10" label="描述文字"></el-input-number>
</template>

<script>
export default {
  props: ['size', 'num'],
  data() {
    return {
      number: 1
    }
  },
  created() {
    this.number = this.num
  },
  methods: {
    handleChange(value) {
      this.$emit("handleValue", value)
    }
  }

}
</script>

<style lang="scss" scoped>

</style>